<?php 
class Test_final extends MY_Controller {
	
	var $mainModel = null;
	//page details //REQUIRED
	var $formView = "test-final-form";
	var $listView = "test-final-list";
	var $FORM_FIELDS = array("firstname","middlename","lastname","username");
	var $SEARCH_FIELDS = array("firstname","middlename","lastname","username");
	var $FILE_FIELDS = array("");
	//var $VALIDATION_CONFIG = "test-form";
	
	function __construct(){
		parent::__construct();
	}

	public function loadLibraries(){
		//load needed libraries here
		$this->load->library('form_validation');
		$this->form_validation->set_error_delimiters('<font color="red">', '</font>');
	}
	
	public function loadModels(){
		//should have only one Main Model.
		$this->loadModel('test/test_final_model' , 'mTest' , TRUE);
	}
	
	public function loadHelpers(){
		$this->load->helper(array('form'));
	}

}	
?>